#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@Author     : ice-melt@outlook.com
@File       : filesize.py
@Time       : 2021/04/22
@Version    : 1.0
@Desc       : None
"""

import os


def loop(file_path):
    for cur_file_name in os.listdir(file_path):
        if cur_file_name == 'anaconda3':
            continue
        cur_path = os.path.join(file_path, cur_file_name)
        if os.path.isfile(cur_path):
            sz = os.path.getsize(cur_path)
            sz = sz / float(1024 * 1024)
            if sz > 1024 * 2:
                print(sz, cur_path)
        else:
            loop(cur_path)


if __name__ == '__main__':
    loop("E:/")
